package net.model.strategy;

public abstract class Duck {

	private IFlyBehavior flyBehavior;

	public Duck() {
		this.setFlyBehavior(new FlyNoWay());
	}
	
	public void fly() {
		this.flyBehavior.fly();
	}
	
	public abstract void display();

	public void setFlyBehavior(IFlyBehavior flyBehavior) {
		this.flyBehavior = flyBehavior;
	}
}
